/*
 * @(#)RssRepositoryTest.java $version 2012. 4. 28.
 *
 */

package com.mywep.myalimi.common.http;

import static org.junit.Assert.*;

import java.util.List;

import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.mywep.myalimi.model.Rss;

/**
 * @author 한지웅
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class RssRepositoryTest {
	@Autowired
	private RssRepository rssRepository;

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * Test method for {@link com.mywep.myalimi.common.http.RssRepository#selectRSS(java.lang.String)}.
	 */
	//	@Test
	public void testSelectRSS() {
		List<Rss> rssList = rssRepository.selectRSS("http://newssearch.naver.com/search.naver?where=rss&query=%B3%D8%BC%D6%B7%D0");
		assertTrue(rssList.size() > 0);
	}

}
